package com.hooya.fa.eu.api.constant;

import java.util.*;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/2/2
 * @Version 1.0.0
 */

public class DictConstant {

    public static final String DICT_PREFIX = "dict::";

    public static final Map<String, Integer> companyMap = new HashMap<String, Integer>() {{
        put("COSTWAY", 0);
        put("FDS", 1);
    }};

    public static final Map<String, Integer> deleteCompanyList = new HashMap<String, Integer>() {{
        put("ningbojoys", 1);
        put("huikai", 2);
        put("kerui", 3);
        put("harhomey", 4);
        put("dongya", 5);
        put("mingdun", 6);
        put("keerxi", 7);
        put("xiyoumin", 8);
        put("lifezeal", 9);
        put("komfort", 10);
        put("giantex", 11);
        put("fds", 12);
        put("costway", 13);
    }};

    //------------------------------------------- 以下已入库，请在数据库中维护 -------------------------------------------
    public static final List<String> xsOtherCkList = Arrays.asList("EU07", "EU08", "EU09", "EU11", "EU10",
            "EU04", "EU01", "EU05", "EU06");

    public static final List<String> restockMarkList = Arrays.asList("FBA", "FBC", "FBK", "FBM", "SFA");

    public static final Map<String, String> abnormalBelongsMap = new HashMap<String, String>() {{
        put("HY-SCBXS22114494", "FDS-DE");
        put("HY-SCBXS21106017", "COSTWAY-PL");
        put("HY-SCBXS20044489", "FDS-DE");
        put("FRLT-220002NB", "COSTWAY-FR");
    }};

    public static final Map<String, String> oeuOrderMap = new HashMap<String, String>() {{
        put("OEUUSA2023041901", "costway");
        put("OEU20230321", "costway");
        put("DE20230304-1", "giantex");
        put("OEU20230526TOPL", "costway");
        put("OEU20230512", "costway");
        put("OEU20230620", "fds");
        put("OEU20230727", "costway");
        put("OEU20230925", "fds");
        put("LE20231028-PL", "costway");
        put("OEU20231014", "fds");
        put("OEUPL20231114-2", "costway");
        put("OEU20231116", "fds");
        put("OEUPL20231114", "costway");
        put("OEU-20231115", "fds");
        put("OEU20231205", "costway");
        put("OEU20240424", "fds");
    }};

    public static final List<String> fbaWlList = new ArrayList<String>() {{
        add("FBA");
        add("FBM");
        add("FBK");
        add("FBC");
        add("SFA-FBA");
    }};

    public static final Map<String, String> fbaCkMap = new HashMap<String, String>() {{
        put("EU86", "FBA");
        put("EU79", "FBA");
        put("EU78", "FBA");
        put("EU98", "FBA");
        put("EU73", "FBA");
        put("EU83", "FBA");
        put("EU80", "FBA");
        put("EU82", "FBA");
        put("EU89", "FBC");
        put("EU84", "FBK");
        put("EU85", "FBM");
        put("EU81", "FBM");
    }};

    //需要顺序
    public static final Map<String, List<String>> fbaCkFdsMap = new HashMap<String, List<String>>() {{
        put("FBA", Arrays.asList("EU79", "EU78", "EU98", "EU86", "EU83", "EU73", "EU80", "EU82"));
        put("FBC", Collections.singletonList("EU89"));
        put("FBK", Collections.singletonList("EU84"));
        put("FBM", Arrays.asList("EU81", "EU85"));
    }};

    //需要顺序
    public static final Map<String, Map<String, List<String>>> fbaCkCostwayMap =
            new HashMap<String, Map<String, List<String>>>() {{
                put("FBA", new HashMap<String, List<String>>() {{
                    put("PL", Collections.singletonList("EU73"));
                    put("FR", Arrays.asList("EU86", "EU83"));
                    put("DE", Arrays.asList("EU79", "EU78", "EU98"));
                    put("IT", Arrays.asList("EU80", "EU82"));
                }});
                put("FBC", new HashMap<String, List<String>>() {{
                    put("FR", Collections.singletonList("EU89"));
                }});
                put("FBK", new HashMap<String, List<String>>() {{
                    put("DE", Collections.singletonList("EU84"));
                }});
                put("FBM", new HashMap<String, List<String>>() {{
                    put("FR", Collections.singletonList("EU85"));
                    put("IT", Collections.singletonList("EU81"));
                }});
            }};

    public static final Map<String, List<String>> countryCkMap = new HashMap<String, List<String>>() {{
        put("DE", Arrays.asList("EU01", "EU02", "EU99", "EU98", "EU97", "EU96", "EU生资库", "EU03",
                "EU05", "EU93", "EU92", "EU79", "EU78", "EU103", "EU201", "EU205", "EU84", "EU109",
                "EU110", "EU120", "EU113", "EU115", "EU117"));
        put("FR", Arrays.asList("EU04", "EU95", "EU94", "EU89", "EU86", "EU10", "EU101", "EU85",
                "EU72", "EU102", "EU105", "EU202", "EU204", "EU114", "EU83", "EU122"));
        put("IT", Arrays.asList("EU06", "EU88", "EU87", "EU104", "EU206", "EU116", "EU80", "EU118",
                "EU81", "EU82"));
        put("PL", Arrays.asList("EU07", "EU91", "EU90", "EU08", "EU09", "EU71", "EU70", "EU11",
                "EU100", "EU73", "EU203", "EU207", "EU208", "EU209", "EU106", "EU107", "EU108",
                "EU112", "EU111", "EU119", "EU121", "EU123", "EU124", "EU125"));
    }};

    public static final List<String> sfCkList = Arrays.asList("EU113", "EU115", "EU116", "EU122");
}
